{% extends 'admin/admin_mould.html' %}

{% block title %}
  modifyDoamin
{% endblock %}

{% block body %}
  <div class="container mar-bot">
    <div class="modify-box">
       <div class="page-header">
          <h3 class="text-center">修改域名信息(可以局部修改)</h3>
        </div>
      <form action="/admin/modify" method="POST">
        <div class="modal-body">
          <div class="form-group">
            <label for="domain">域名</label>
            <input type="text" class="form-control" disabled="disabled" id="domain" placeholder="{{ domain_dic.name }}">
            <input type="text" name="domain_name" value="{{ domain_dic.name }}" style="display: none;">
            <input type="text" name="domain_id" value="{{ domain_dic.id }}" style="display: none;">
          </div>
          <div class="form-group">
            <label for="domainExplain">备案文字说明</label>
            <input type="text" class="form-control" name='domainExplain' id="domainExplain" placeholder="{{ domain_dic.info.domainExplain }}">
          </div>
          <div class="form-group">
            <label for="transactionType">域名交易类型</label>
            <select class="form-control" name="transactionType" id="transactionType">
            {% if domain_dic.info.transactionType == '0' %}
              <option value="1">一口价</option>
              <option value="0" selected="selected">竞价</option>
              <option value="2">待定</option>
            {% elif domain_dic.info.transactionType == '1' %}
              <option value="1" selected="selected">一口价</option>
              <option value="0">竞价</option>
              <option value="2">待定</option>
            {% else %}
              <option value="1">一口价</option>
              <option value="0">竞价</option>
              <option value="2" selected="selected">待定</option>
            {% endif %}
            </select>
          </div>
          <div class="form-group">
            <label for="domainType">域名类型</label>
            <input type="text" class="form-control" name='domainType' id="domainType" placeholder="{{ domain_dic.info.domainType }}">
          </div>
          <div class="form-group">
            <label for="domainlLength">域名长度</label>
            <input type="text" class="form-control" name='domainlLength' id="domainlLength" placeholder="{{ domain_dic.info.domainlLength }}">
          </div>
          <div class="form-group">
            <label for="domainScore">域名评分</label>
            <input type="text" class="form-control" name='domainScore' id="domainScore" placeholder="{{ domain_dic.info.domainScore }}">
          </div>
          <div class="form-group">
            <label for="domainEvaluation">估价</label>
            <div class="input-group">
              <div class="input-group-addon">$</div>
              <input type="text" class="form-control" id="domainEvaluation" name='domainEvaluation' placeholder="{{ domain_dic.info.domainEvaluation }}">
            </div>
          </div>
          <div class="form-group">
            <label for="domainHistory">历史量</label>
            <input type="text" class="form-control" name='domainHistory' id="domainHistory" placeholder="{{ domain_dic.info.domainHistory }}">
          </div>
          <div class="form-group">
            <label for="domainAlexay">alexa</label>
            <input type="text" class="form-control" name='domainAlexa' id="domainAlexay" placeholder="{{ domain_dic.info.domainAlexa }}">
          </div>
          <div class="form-group">
            <label for="AntiChain">反链</label>
            <input type="text" class="form-control" name='AntiChain' id="AntiChain" placeholder="{{ domain_dic.info.AntiChain }}">
          </div>
          <div class="form-group">
            <label for="TheChain">外链</label>
            <input type="text" class="form-control" name='TheChain' id="TheChain" placeholder="{{ domain_dic.info.TheChain }}">
          </div>
          <div class="form-group">
            <label for="domainAmount">收录量</label>
            <input type="text" class="form-control" name='domainAmount' id="domainAmount" placeholder="{{ domain_dic.info.domainAmount }}">
          </div>
          <div class="form-group">
            <label for="domainPr">pr</label>
            <input type="text" class="form-control" name='domainPr' id="domainPr" placeholder="{{ domain_dic.info.domainPr }}">
          </div>
          <div class="form-group">
            <label for="domainWeight">权重</label>
            <input type="text" class="form-control" name='domainWeight' id="domainWeight" placeholder="{{ domain_dic.info.domainWeight }}">
          </div>
          <div class="form-group">
            <label for="domainReTime">注册年限</label>
            <input type="text" class="form-control" name='domainReTime' id="domainReTime" placeholder="{{ domain_dic.info.domainReTime }}">
          </div>
          <div class="form-group">
            <label for="RemainingTime">剩余时间</label>
            <input type="text" class="form-control" name='RemainingTime' id="RemainingTime" placeholder="{{ domain_dic.info.RemainingTime }}">
          </div>
          <div class="form-group">
            <label for="domainPrice">价格</label>
            <div class="input-group">
              <div class="input-group-addon">$</div>
              <input type="text" class="form-control" id="domainPrice" name='domainPrice' placeholder="{{ domain_dic.info.domainPrice }}">
            </div>
          </div>
          <div class="form-group">
            <label for="transactionType">域名状态</label>
            <select class="form-control" name="domainStatus" id="domainStatus">
              {% if domain_dic.status == 1 %}
              <option value="1" selected="selected">已出售</option>
              <option value="0">未出售</option>
              {% else %}
              <option value="1">已出售</option>
              <option value="0" selected="selected">未出售</option>
              {% endif %}
            </select>
          </div>
        </div>
        <div class="modal-footer">
          <input type="submit" class="btn btn-primary" value="提交修改">
        </div>
      </form>
    </div>
  </div>
{% endblock %}